package com.hellogood.yaohuo.client.bussiness.ziyou;

import com.hellogood.yaohuo.client.bussiness.SearchController;
import com.hellogood.yaohuo.client.common.SearchResultAsynCallback;
import com.hellogood.yaohuo.shared.services.ZiyouService;
import com.smartgwt.client.widgets.grid.ListGridField;

public class ZiyouSearchController extends SearchController {

	@Override
	public void searchForm(String orgCode, String startDate, String endDate, String rz) {		
		ZiyouService.Util.getInstance().searchZiyouFormByOrgCodeAndDate(orgCode, 0, startDate, endDate, rz, new SearchResultAsynCallback(listGrid));
	}

	@Override
	protected void buildListFields() {
		fields = new ListGridField[] { codeField, orgField, amountField, zdUserField, zdDateField, rzDateField, statusField, remarkField };
	}
}

